home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / SPRAY.ZIP / RAINBOW.POV < prev    next >
Encoding:
Text File  |  1997-05-23  |  1.3 KB  |  49 lines

  1. // LIQID SPRAY: RAINBOW NOZZLE
  2. // ***************************
  3. // This animation shows how the nozzle_spin option can be used to create
  4. // spinning spray objects, and how the spray_color_map can be used in
  5. // animations.
  6. // NOTE: This animation should be rendered with at least 100 frames to
  7. //       properly see the spinning effect.
  8.  
  9. // CAMERA AND LIGHTS
  10.    camera {location <0, 0, -25> look_at <0, 0, 0> angle 40}
  11.    light_source {<0, 10, -50> rgb 1.5}
  12.  
  13. // BACKGROUND
  14.    plane {z, 10
  15.       pigment {checker rgb 0, rgb 1 scale 3}
  16.       finish {ambient .4 diffuse .3}}
  17.  
  18. // SPRAY OPTIONS
  19.    #declare spray_location = <-10, -3, 0>
  20.    #declare spray_direction = <5, 5, 0>
  21.    #declare spray_strength = 15
  22.  
  23.    #declare spray_start_time = .4
  24.    #declare spray_stop = .8
  25.    #declare time_scale = 10
  26.  
  27.    #declare particle_count = 100
  28.    #declare particle_life = 2
  29.    #declare particle_stretch = 2
  30.    #declare particle_dist = .6
  31.  
  32.    #declare nozzle_angle = 30
  33.    #declare nozzle_spin = 2
  34.  
  35.    #declare spray_color_map = color_map {
  36.       [0 rgb <1, 0, 0>]
  37.       [.2 rgb <1, 1, 0>]
  38.       [.4 rgb <0, .7, .3>]
  39.       [.6 rgb <0, .6, 1>]
  40.       [.8 rgb <.5, 0, .5>]
  41.       [1 rgb <1, 0, 0>]}
  42.  
  43.    #declare spray_turb = .1
  44.    #declare angle_turb = 3
  45.    #declare spin_turb = 3
  46.  
  47. // CREATE SPRAY OBJECT
  48.    #include "Spray.inc"
  49.